from django.urls import path
from bike.auth import BikeTokenView
from bike import views

app_name = "bike"

urlpatterns = [
    path("uploadimg", views.UploadImgApi.as_view()),
    path("login", BikeTokenView.as_view()),
    path("index", views.IndexApi.as_view()),
    path("plate/search", views.PlateSearchApi.as_view()),
    path("plate/search/decrypt", views.PlateSearchDecryptApi.as_view()),
    path("plate/det", views.PlateDetApi.as_view()),
    path("plate/bind/student", views.PlateBindStudentApi.as_view()),
    path("plate/bind/teacher", views.PlateBindTeacherApi.as_view()),
    path("plate/reset/student", views.PlateResetStudentApi.as_view()),
    path("plate/reset/teacher", views.PlateResetTeacherApi.as_view()),
    path("violation/add", views.ViolationAddApi.as_view()),
    path("violation/det", views.ViolationDetApi.as_view()),
]